package com.education.course.service.impl;

import java.util.List;
import com.education.common.utils.DateUtils;
import com.education.course.domain.EduCourseQuestionBank;
import com.education.course.mapper.EduCourseQuestionBankMapper;
import com.education.course.service.IEduCourseQuestionBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author education
 * @date 2024-08-05
 */
@Service
public class EduCourseQuestionBankServiceImpl implements IEduCourseQuestionBankService
{
    @Autowired
    private EduCourseQuestionBankMapper eduCourseQuestionBankMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public EduCourseQuestionBank selectEduCourseQuestionBankById(Long id)
    {
        return eduCourseQuestionBankMapper.selectEduCourseQuestionBankById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param eduCourseQuestionBank 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<EduCourseQuestionBank> selectEduCourseQuestionBankList(EduCourseQuestionBank eduCourseQuestionBank)
    {
        return eduCourseQuestionBankMapper.selectEduCourseQuestionBankList(eduCourseQuestionBank);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param eduCourseQuestionBank 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertEduCourseQuestionBank(EduCourseQuestionBank eduCourseQuestionBank)
    {
        eduCourseQuestionBank.setCreateTime(DateUtils.getNowDate());
        return eduCourseQuestionBankMapper.insertEduCourseQuestionBank(eduCourseQuestionBank);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param eduCourseQuestionBank 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateEduCourseQuestionBank(EduCourseQuestionBank eduCourseQuestionBank)
    {
        eduCourseQuestionBank.setUpdateTime(DateUtils.getNowDate());
        return eduCourseQuestionBankMapper.updateEduCourseQuestionBank(eduCourseQuestionBank);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseQuestionBankByIds(Long[] ids)
    {
        return eduCourseQuestionBankMapper.deleteEduCourseQuestionBankByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseQuestionBankById(Long id)
    {
        return eduCourseQuestionBankMapper.deleteEduCourseQuestionBankById(id);
    }
}
